translator.service({
  meta : {
    version : "0.0.1",
    shortName : "eidetica",
    name : "Eidetica Language Guesser",
    icon : "chrome://translator/skin/services/yahoo.png",
    desc : "",
    homepage : "http://www.eidetica.com/"
  },

  detect : {
    url : "http://www.eidetica.com/services/guesser",
    method : "GET",
    params: {string :"{{text}}"},
    get : function (html) {      
      var lang = html.split("<TD class=\"celltext\"bgcolor=\"#7FC0A0\">")[1].split("</TD>")[0];
      return translator.languages.find(lang) || false;
    }
  }
});
